/**
 * Copyright © 2013 Creativor Studio.
 * About license information, please see LICENSE.txt.
 */
package org.creativor.rayson.demo.simple;

import java.io.IOException;

import org.creativor.rayson.api.NetworkException;
import org.creativor.rayson.api.Protocol;

/**
 * An protocol just provider service that echo the message send from client.
 * 
 * @author creativor
 */
public interface EchoProtocol extends Protocol {
	/**
	 * Echo message send from client.
	 * @param msg
	 * @return
	 * @throws IOException
	 */
	public String echo(String msg) throws NetworkException;
}
